Matthias Clasen [Sun, 30 Jan 2011 03:42:14 +0000 (22:42 -0500)]
Go back to using the image/* example
Paolo Borelli [Sat, 29 Jan 2011 20:26:12 +0000 (21:26 +0100)]
Do not use old functions in the docs.
Matthias Clasen [Sat, 29 Jan 2011 19:16:47 +0000 (14:16 -0500)]
Add a gtkx.h header for X11-specific GTK+ api
This keeps us from pulling gdkx.h into gtk.h
https://bugzilla.gnome.org/show_bug.cgi?id=640902
Matthias Clasen [Sat, 29 Jan 2011 18:40:19 +0000 (13:40 -0500)]
Add a missing end tag
Luca Ferretti [Sat, 29 Jan 2011 14:55:20 +0000 (15:55 +0100)]
Updated Italian translation
Carlos Garnacho [Sat, 29 Jan 2011 13:10:36 +0000 (14:10 +0100)]
Move "widget/window under device" accounting to be per-widget
This management is better done per-widget rather than per-screen,
as windows being destroyed won't trigger a leave notify for the
devices on top of it, and this information is too transitive
to keep weak refs and such.
This fixes the critical warning seen in gtk/tests/testing.
Paolo Borelli [Sat, 29 Jan 2011 13:34:29 +0000 (14:34 +0100)]
Add padding to the themingengine class.
Paolo Borelli [Sat, 29 Jan 2011 11:47:09 +0000 (12:47 +0100)]
Move the get_cursor_color in GtkStyleContext
Move the private get_cursor_color method belongs to StyleContext. Change
the api so that retrieving both primary and secondary color is possible.
I left the method private for now, though it should probably be public
as all the other getters.
Paolo Borelli [Sat, 29 Jan 2011 11:38:50 +0000 (12:38 +0100)]
Use GtkRGBA for the cursor color priv api.
Paolo Borelli [Sat, 29 Jan 2011 11:24:37 +0000 (12:24 +0100)]
Fix typo in calculating secondary cursor color
A S Alam [Sat, 29 Jan 2011 02:26:20 +0000 (07:56 +0530)]
update Punjabi Translation by A S Alam
A S Alam [Sat, 29 Jan 2011 02:03:39 +0000 (07:33 +0530)]
update Punjabi Translation by A S Alam
William Jon McCann [Fri, 28 Jan 2011 21:59:35 +0000 (16:59 -0500)]
Don't call object notify for something that isn't a property
Krzesimir Nowak [Fri, 12 Nov 2010 12:14:12 +0000 (13:14 +0100)]
Check if buffer is NULL after setting it to NULL, not before.
This catches cases when "notify::buffer" handler does not recreate
the buffer again, which could end in reference leak.
https://bugzilla.gnome.org/show_bug.cgi?id=634677
Daniel Mustieles [Fri, 28 Jan 2011 19:04:18 +0000 (20:04 +0100)]
Updated Spanish translation
Matthias Clasen [Fri, 28 Jan 2011 16:08:26 +0000 (11:08 -0500)]
Fix a doc typo
Matthias Clasen [Fri, 28 Jan 2011 15:47:36 +0000 (10:47 -0500)]
Mention GtkEntryCompletion signal parameter change
Benjamin Otte [Fri, 28 Jan 2011 15:42:40 +0000 (16:42 +0100)]
recentfilter: Fix gcc warnings
gtkrecentfilter.c:37:47: error: "/*" within comment
gtkrecentfilter.c:61:24: error: "/*" within comment
Benjamin Otte [Fri, 28 Jan 2011 15:32:06 +0000 (16:32 +0100)]
gtk: gtkfilefilter.c:57:24: error: "/*" within comment
Benjamin Otte [Fri, 28 Jan 2011 14:45:16 +0000 (15:45 +0100)]
x11: Use Window instead of GdkNativeWindow
Benjamin Otte [Fri, 28 Jan 2011 14:39:11 +0000 (15:39 +0100)]
plug: Move private functions to gtksocketprivate.h
Benjamin Otte [Fri, 28 Jan 2011 14:37:57 +0000 (15:37 +0100)]
tests: Use Window instead of GdkNativeWindow in testsocket example
Benjamin Otte [Fri, 28 Jan 2011 14:34:28 +0000 (15:34 +0100)]
plug: Use Window instead of GdkNativeWindow
Benjamin Otte [Fri, 28 Jan 2011 14:20:54 +0000 (15:20 +0100)]
socket: Use Window instead of GdkNativeWindow
Benjamin Otte [Fri, 28 Jan 2011 14:16:27 +0000 (15:16 +0100)]
win32: Make GtkWin32EmbedWidget use HWND instead of GdkNativeWindow
Benjamin Otte [Fri, 28 Jan 2011 14:12:47 +0000 (15:12 +0100)]
window: Get rid of GdkNativeWindow usage
Make _gtk_window_add_embedded_xid() and
_gtk_window_remove_embedded_xid() take a Window.
Benjamin Otte [Fri, 28 Jan 2011 14:11:44 +0000 (15:11 +0100)]
API: x11: Add GDK_POINTER_TO_XID() and GDK_XID_TO_POINTER()
Previously people used GDK_GPOINTER_TO_NATIVE_WINDOW() for this, but
native windows are going away, so we need a replacement.
Benjamin Otte [Fri, 28 Jan 2011 13:35:49 +0000 (14:35 +0100)]
window: Make embedded xid specific to the X11 backend
Benjamin Otte [Fri, 28 Jan 2011 13:28:36 +0000 (14:28 +0100)]
gtk: Prefix gtk_window_add_embedded_xid() with underscore
It's a private API after all.
Same thing for gtk_window_remove_embedded_xid().
Benjamin Otte [Fri, 28 Jan 2011 13:01:46 +0000 (14:01 +0100)]
API: Don't export gtk_window_add_embedded_xid()
Same thing for gtk_window_remove_embedded_xid()
Benjamin Otte [Fri, 28 Jan 2011 12:02:52 +0000 (13:02 +0100)]
socket: Merge gtksocket-x11.c back into gtksocket.c
Benjamin Otte [Fri, 28 Jan 2011 11:06:24 +0000 (12:06 +0100)]
plug: Merge gtkplug-x11.c back into gtkplug.c
Benjamin Otte [Fri, 28 Jan 2011 10:13:06 +0000 (11:13 +0100)]
plug/socket: Remove x11 checks and non-x11 code
Benjamin Otte [Fri, 28 Jan 2011 09:56:40 +0000 (10:56 +0100)]
plug/socket: Clarify docs about availablility of widgets
Benjamin Otte [Fri, 28 Jan 2011 09:53:32 +0000 (10:53 +0100)]
win32: Fix Makefile for plug/socket removal.
Benjamin Otte [Fri, 28 Jan 2011 09:52:29 +0000 (10:52 +0100)]
plug/socket: Remove plug/socket backend implementations for win32 and stub
Benjamin Otte [Fri, 28 Jan 2011 09:47:34 +0000 (10:47 +0100)]
plug/socket: Make GtkPlug and GtkSocket X11-specific
People agreed that it doesn't make sense to make an xembed
implementation like plug/socket does not make sense on anything but X11.
And as GdkNativeWindow is going away for multibackend portability
reasons, we'd either need API fixes in the plug-socket codee or
constrain the widgets to a single backend. We chose the latter.
Cosimo Cecchi [Thu, 27 Jan 2011 18:09:56 +0000 (13:09 -0500)]
mount-operation: don't show the dialog until the tree is populated
Otherwise it won't show up properly, and GTK+ will trigger a warning.
Don't know why this did not show up before.
https://bugzilla.gnome.org/show_bug.cgi?id=640744
Ignacio Casal Quinteiro [Fri, 28 Jan 2011 12:24:26 +0000 (13:24 +0100)]
Remove gtk_paste_point_override mark if we don't insert any text.
This patch fixes bug #590459.
Murray Cumming [Fri, 28 Jan 2011 09:17:06 +0000 (10:17 +0100)]
Move gtk_widget_reset_style() out of the deprecation ifdef.
This new function was not apparently meant to be inside the deprecation
guards.
Murray Cumming [Fri, 28 Jan 2011 09:10:23 +0000 (10:10 +0100)]
Tiny typo fix.
Tristan Van Berkom [Fri, 28 Jan 2011 06:54:50 +0000 (15:54 +0900)]
Add default class implementation of gtk_widget_get_request_mode().
Instead of checking if klass->get_request_mode is != NULL from
the gtk_widget_get_request_mode() api, this allows classes to
trust that there is a default implementation and chain up (specifically
added this for gtkmm wrapper objects).
Matthias Clasen [Fri, 28 Jan 2011 04:23:43 +0000 (23:23 -0500)]
Protect against giant title fonts
We don't want repeated calls to set_title_font to blow up the
font size ever more, so reset the font each time.
https://bugzilla.gnome.org/show_bug.cgi?id=640712
Matthias Clasen [Fri, 28 Jan 2011 02:50:00 +0000 (21:50 -0500)]
Make the places in the file chooser come up with a reasonable size
Matthias Clasen [Fri, 28 Jan 2011 02:04:32 +0000 (21:04 -0500)]
Fix the new filechooser buttons to work without symbolic icons
William Jon McCann [Thu, 27 Jan 2011 20:21:10 +0000 (15:21 -0500)]
Use a toolbar with symbolic icons under scrolled lists
Daniel Mustieles [Thu, 27 Jan 2011 20:21:53 +0000 (21:21 +0100)]
Updated Spanish translation
Carlos Garnacho [Sun, 23 Jan 2011 13:34:14 +0000 (14:34 +0100)]
Remove GTK_RBNODE_IS_SEMI_[COLLAPSED|EXPANDED] flags.
These aren't used anymore.
Carlos Garnacho [Sun, 23 Jan 2011 13:31:19 +0000 (14:31 +0100)]
Set "cell" class and state before rendering a cellrenderer.
Carlos Garnacho [Wed, 12 Jan 2011 20:29:41 +0000 (21:29 +0100)]
Make GtkCellRendererAccel use GtkStyleContext
Carlos Garnacho [Wed, 12 Jan 2011 20:29:11 +0000 (21:29 +0100)]
Make GtkCellRendererPixbuf use GtkStyleContext
Carlos Garnacho [Wed, 12 Jan 2011 20:28:44 +0000 (21:28 +0100)]
Make GtkCellRendererProgress use GtkStyleContext
Carlos Garnacho [Wed, 12 Jan 2011 20:27:25 +0000 (21:27 +0100)]
Make GtkCellRendererToggle use GtkStyleContext
Carlos Garnacho [Wed, 12 Jan 2011 20:26:52 +0000 (21:26 +0100)]
Make GtkCellRendererText use GtkStyleContext
Carlos Garnacho [Wed, 12 Jan 2011 20:26:25 +0000 (21:26 +0100)]
Make GtkIconView use GtkStyleContext
Carlos Garnacho [Wed, 12 Jan 2011 20:18:07 +0000 (21:18 +0100)]
Make GtkTreeView use GtkStyleContext
Expander animation has been replaced by implicit animations
from the style context.
Column headers are also properly themed, GtkContainer::get_path_for_child()
is implemented and the treeview resets column buttons style on columns
being reordered.
The default CSS has changed to theme treeviews sensibly.
Carlos Garnacho [Wed, 12 Jan 2011 20:07:05 +0000 (21:07 +0100)]
Make GtkCellArea use GtkStyleContext
gtk_cell_area_[gs]et_style_detail() is no longer needed, as
the passed widget's context would already have all necessary
info.
Carlos Garnacho [Sun, 23 Jan 2011 13:12:36 +0000 (14:12 +0100)]
Add gtk_cell_renderer_get_state()
This is a helper function to help retrieve a GtkStateFlags
from a GtkCellRendererState, also given the cell renderer
and widget sensitivities.
Colin Walters [Thu, 27 Jan 2011 16:19:51 +0000 (11:19 -0500)]
Clarify documentation header about GTK+ 3 vs 2
I think it's confusing for a lot the developers out there who
may not even be aware of GTK+ 3 coming, if suddenly GTK+ 3 becomes
the "stable" version of "gtk" on library.gnome.org. It may
not even be feasible for them to port to GTK+3 if it's not
shipped in the operating systems they're targeting (for example,
RHEL 6).
Since practically speaking, we expect people to consume GTK+ 2 for
several years at least, redirect these people to the right pages.
(I didn't attempt to explain the differences between the libraries
here, but hopefully the major version difference is enough of a hint)
As a side effect, this makes the generated HTML look better; previously
it looked rather crappy, since the "for GTK &version;" was totally
offset and in a different group from the documentation title.
Tristan Van Berkom [Thu, 27 Jan 2011 07:30:15 +0000 (16:30 +0900)]
Added <mime-types> and <patterns> parsing support to GtkFileFilter.
Kjartan Maraas [Thu, 27 Jan 2011 10:25:19 +0000 (11:25 +0100)]
Updated Norwegian bokmål translation.
Tristan Van Berkom [Thu, 27 Jan 2011 07:04:02 +0000 (16:04 +0900)]
Removed a useless redundant line of code in gtkcellview.c
Tristan Van Berkom [Wed, 26 Jan 2011 18:12:35 +0000 (03:12 +0900)]
Added links to the GtkTextTagTable and GtkMenuToolButton GtkBuildable documentation from GtkBuilder documentation.
Matthias Clasen [Wed, 26 Jan 2011 16:33:19 +0000 (11:33 -0500)]
Document new default handling
Matthias Clasen [Wed, 26 Jan 2011 16:20:22 +0000 (11:20 -0500)]
Rename GTK_SETTINGS_SOURCE_RC_FILE to _THEME
This makes more sense, since we don't parse rc files anymore.
This is private api inside gtksettings.c, anyway.
Matthias Clasen [Wed, 26 Jan 2011 16:18:11 +0000 (11:18 -0500)]
Parse a per-theme settings.ini file
This lets themes override settings values again. We are using
the same priority that was used from the rc file parser, so things
are largely unchanged, relative to other settings sources.
Matthias Clasen [Wed, 26 Jan 2011 16:17:34 +0000 (11:17 -0500)]
Privately export css_provider_get_theme_dir
Matthias Clasen [Wed, 26 Jan 2011 15:46:40 +0000 (10:46 -0500)]
Break out into a separate function
Move key file parsing to gtk_settings_load_from_key_file(), in
preparation for loading per-theme files. Load key files from both
/etc and ~/.config, with the latter overriding the former. Support
parsing enum values.
Matthias Clasen [Wed, 26 Jan 2011 13:57:08 +0000 (08:57 -0500)]
First pass a parsing a keyfile for default settings
Fran Diéguez [Thu, 27 Jan 2011 02:26:00 +0000 (03:26 +0100)]
QA of Galician translations
Matthias Clasen [Wed, 26 Jan 2011 23:19:35 +0000 (18:19 -0500)]
Document that gtk_widget_queue_draw_area is in widget coordinates
Daniel Mustieles [Wed, 26 Jan 2011 19:48:29 +0000 (20:48 +0100)]
Updated Spanish translation
Khaled Hosny [Wed, 26 Jan 2011 15:54:57 +0000 (17:54 +0200)]
Updated Arabic translation
Tristan Van Berkom [Wed, 26 Jan 2011 14:58:47 +0000 (23:58 +0900)]
Added links to the GtkComboBox/GtkRecentFilter GtkBuildable documentation from GtkBuilder documentation.
Tristan Van Berkom [Wed, 26 Jan 2011 13:19:41 +0000 (22:19 +0900)]
Fixed GtkCellLayout to parse <cell-packing> property text accumulatively.
Tristan Van Berkom [Wed, 26 Jan 2011 13:10:33 +0000 (22:10 +0900)]
Fixed GtkContainer to parse <packing> property text accumulatively.
Tristan Van Berkom [Wed, 26 Jan 2011 12:56:43 +0000 (21:56 +0900)]
Changed GtkComboBoxText <items> builder parser to use g_string_append_len().
Tristan Van Berkom [Wed, 26 Jan 2011 12:53:45 +0000 (21:53 +0900)]
Changed GtkRecentFilter builder parsing to use g_string_append_len
Tristan Van Berkom [Wed, 26 Jan 2011 12:48:53 +0000 (21:48 +0900)]
Fix GtkRecentFilter GtkBuildable parsing to handle incomming text accumulatively
Tristan Van Berkom [Wed, 26 Jan 2011 12:44:18 +0000 (21:44 +0900)]
Fix GtkComboBoxText GtkBuildable <items> parsing to handle incomming text accumulatively
Tristan Van Berkom [Mon, 24 Jan 2011 08:08:31 +0000 (17:08 +0900)]
Added a line to the documentation example of GtkRecentFilter
Tristan Van Berkom [Mon, 24 Jan 2011 08:05:57 +0000 (17:05 +0900)]
Added GtkBuildable support for adding rules to GtkRecentFilter
Also added documentation section for this. Since the GtkRecentFilter
documentation was still living in sgml, as a side-effect I migrated these
docs to the gtkrecentfilter.[ch] sources.
Martin Pitt [Wed, 26 Jan 2011 13:39:50 +0000 (14:39 +0100)]
[GI] Fix gtk_tree_view_get_cursor() transfer annotation
Christian Dywan [Fri, 24 Sep 2010 16:04:14 +0000 (18:04 +0200)]
State that _add_button functions return a "#GtkButton widget"
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=586635
Michael Natterer [Tue, 25 Jan 2011 21:29:00 +0000 (22:29 +0100)]
gtk: add missing class padding
Sorry for this late ABI break, but the newly added style classes
definitely need padding, so I can just as well add missing padding
globally.
Carlos Garnacho [Tue, 25 Jan 2011 12:30:24 +0000 (13:30 +0100)]
Make gtk_widget_get_state() only handle GtkStateType values available in 2.x
GtkStateType was generally used as an index in GtkStyle color arrays, so
bigger values will cause invalid memory accesses in widgets that are still
doing that. this was seen in focused GtkIconViews for example
Chao-Hsiung Liao [Tue, 25 Jan 2011 11:23:35 +0000 (19:23 +0800)]
Updated Traditional Chinese translation (Hong Kong and Taiwan)
Matthias Clasen [Tue, 25 Jan 2011 03:20:35 +0000 (22:20 -0500)]
Clarify documentation about application vs window lifecycle
https://bugzilla.gnome.org/show_bug.cgi?id=639931
Matthias Clasen [Tue, 25 Jan 2011 00:25:08 +0000 (19:25 -0500)]
Add gtk_app_chooser_button_get/set_heading
Carlos Garnacho [Mon, 24 Jan 2011 18:55:41 +0000 (19:55 +0100)]
Do not modify associated device for non-master devices on dispose
Only master devices must modify the associated device to separate
a pointer/keyboard pair, slave devices must only call
_gdk_device_remove_slave().
Fixes bug 639767 - password not accepted in gnome-screensaver dialog,
reported by Frederic Crozat. On VT-switch, the X server removes its
grab on HW devices, the effect on clients is that slave devices
disappear, and these were mistakenly mangling the master device
hierarchy. so gdk_device_get_associated_device() on the client
pointer wouldn't return the paired keyboard anymore.
The final effect is that gtkplug-x11 wasn't setting a keyboard to
its generated events.
Carlos Garnacho [Mon, 24 Jan 2011 17:14:05 +0000 (18:14 +0100)]
Unset border-width for treeview rows in default CSS
Fixes bug #640391 - Display lines between rows when window is focused.
Reported by Guillaume Desmottes.
Matthias Clasen [Mon, 24 Jan 2011 12:46:15 +0000 (07:46 -0500)]
Avoid passing widgets around here
The style context is enough.
Matthias Clasen [Mon, 24 Jan 2011 05:24:12 +0000 (00:24 -0500)]
Port gtk_draw_insertion_cursor to GtkStyleContext
Matthias Clasen [Mon, 24 Jan 2011 04:48:32 +0000 (23:48 -0500)]
Kill one more unused variable
Matthias Clasen [Mon, 24 Jan 2011 04:20:57 +0000 (23:20 -0500)]
Don't leak CursorInfo structs
Matthias Clasen [Mon, 24 Jan 2011 02:50:39 +0000 (21:50 -0500)]
Silence new gcc warnings
gcc 4.6.0 has started to warn about set-but-unused variables.
So don't do that, then.
Carlos Garnacho [Mon, 24 Jan 2011 01:38:12 +0000 (02:38 +0100)]
Add extra checks for GdkDevice functions that might fail on slave devices.
Documentation bits have been added as well.
Carlos Garnacho [Mon, 24 Jan 2011 01:32:50 +0000 (02:32 +0100)]
Avoid toplevel tracking on slave device after ungrab
slave devices don't have coordinates themselves, as they depend
on a master, this only changes if they have a grab in effect,
so only keep toplevel tracking enabled in such situation. Fixes
Bug #640313 - BadDevice X error when ungrabbing a SLAVE device,
noticed by Jesse van den Kieboom.
Matthias Clasen [Sun, 23 Jan 2011 23:50:09 +0000 (18:50 -0500)]
Silence new gcc warnings
gcc 4.6.0 has started to warn about set-but-unused variables.
So don't do that, then.
Matthias Clasen [Sun, 23 Jan 2011 23:29:07 +0000 (18:29 -0500)]
Split out private style context api into a private header